From: Jo-Philipp Wich Date: Fri, 28 Apr 2023 21:52:45 +0000 (+0200) Subject: luci-mod-system: uhttpd.js: remove flag option overrides X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=58f7b27adf0087721dcb509f16745203513e15e8;p=project%2Fluci.git luci-mod-system: uhttpd.js: remove flag option overrides Use standard 0/1 values for the `redirect_https` option. Supersedes: #6332 Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/uhttpd.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/uhttpd.js index d02e18505a..6febb4cc17 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/uhttpd.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/uhttpd.js @@ -12,9 +12,6 @@ return view.extend({ s.addremove = false; o = s.option(form.Flag, 'redirect_https', _('Redirect to HTTPS'), _('Enable automatic redirection of HTTP requests to HTTPS port.')); - o.enabled = 'on'; - o.disabled = 'off'; - o.default = o.disabled; o.rmempty = false; return m.render();